package com.lyx.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * ⽤户表
 * @TableName t_user
 */
@TableName(value ="t_user")
@Data
public class User implements Serializable {
    /**
     * 序号，主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * ⼿机号，唯⼀
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * ⽤户名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 等级
     */
    @TableField(value = "level")
    private String level;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 佣⾦
     */
    @TableField(value = "kickback")
    private Double  kickback;

    /**
     * 状态:有效 ⽆效
     */
    @TableField(value = "status")
    private String status;

    /**
     * 邀请码
     */
    @TableField(value = "code")
    private String code;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 积分
     */
    @TableField(value = "exp")
    private Integer exp;

    /**
     * 连续签到天数
     */
    @TableField(value = "s_days")
    private Integer sDays;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
